﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LogType.aspx.cs" Inherits="log_LogType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
       <title>日志分类管理</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../css/ss01.css" />
	<link rel="stylesheet" type="text/css" href="../css/stylesheet.css"/>
    <script language="JScript" src="../js/Function.js"></script>
    <script language="JScript" src="../js/myCheck.js"></script>
    <script type="text/javascript" language="javascript">
		function chk() 
		{
			if(CheckText($.trim(form1.txtname),"名称",20)==false) return false;
			return true;
		}
    </script>
</head>
<body >
    <form id="form1" runat="server">
    <div>
		<table cellSpacing="0" cellPadding="0" border="0" align="center">
		    <tr>
		        <td style="background-color:White;padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px;">
		            <table cellSpacing="0" cellPadding="0" width="500" align="center" border="0" style="background-color:White;">
		                <tr>
		                    <td style="BORDER-RIGHT: #90b0de 1px solid; BORDER-TOP: #90b0de 1px solid; BORDER-LEFT: #90b0de 1px solid; BORDER-BOTTOM: #90b0de 1px solid">
		                        <table width="100%" cellSpacing="0" cellPadding="0" align="center" border="0">
		                            <tr height="30">
		                                <td style="border-bottom: #90b0de 1px solid; font-weight: bold; color: #004499;border-bottom:1px solid silver;">&nbsp;&nbsp;&nbsp;<img src="../images/ico_rj.gif" />日志分类管理</td><td style="border-bottom: #90b0de 1px solid; font-weight: bold; color: #004499;border-bottom:1px solid silver; text-align:right"> <a href ='javascript:window.history.back();'> << 返回上一页</a></td>
		                            </tr>
		                        </table>
		                        <table >
		                            <tr>
		                                <td><a href='log.aspx'>返回日记首页</a></td>
		                            </tr>
		                        </table>
                                <div id="mnginput" style="margin-top:10px;margin-bottom:10px;margin-left:10px;">
                                    <table>
                                        
                                        <tr>
                                            <td><asp:TextBox ID="txtname" runat="server" Width="130px"></asp:TextBox><asp:HiddenField ID='hdid' runat="server" /></td>
                                            
                                            <td><asp:button id="btnInsert" CssClass='rb1-12' runat="server" Text="添加分类"  OnClick="btnInsert_Click"></asp:button></td>
                                        </tr>
                                    </table>
                                </div>
                                
                                <div style="border-top: #90b0de 1px solid;"></div>
                                <div id="mnglist" style="margin-top:10px;margin-bottom:10px;margin-left:10px;margin-right:10px;">
                                    <asp:DataList ID="dlTable" runat="server" OnItemCommand="dlTable_ItemCommand" Width="100%" OnItemDataBound="dlTable_ItemDataBound">
				                        <HeaderTemplate>
					                        <table class='tablegrid' width="100%" cellpadding="2" cellspacing="2">
						                        <tr>
							                        <td width="100" style="color:Silver"  >名称</td>
							                        <td width='100' style="color:Silver" align="center"  >访问权限</td>
							                        <td width='50' style="color:Silver" align="center"  >操作</td>
						                        </tr>
			                                </table>
				                        </HeaderTemplate>
				                        <ItemTemplate>
					                        <table class='tablegrid' width="100%" cellpadding="2" cellspacing="2">
					                            <tr>
						                            <td width='100'><asp:HiddenField ID='hfid' runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "id") %>' /><asp:TextBox ID='txtname' runat=server Text='<%#  DataBinder.Eval(Container.DataItem, "name") %>'></asp:TextBox></td>
						                            <td width='100'><asp:DropDownList  ID='ddlauthoritytype' runat="server" ><asp:ListItem Text='公开' Value='1'></asp:ListItem><asp:ListItem Text='不公开' Value='2'></asp:ListItem><%--<asp:ListItem Text='凭密码' Value='3'></asp:ListItem>--%></asp:DropDownList>  </TD>
						                            <td width='50'>[<asp:linkbutton id="lbDelete" runat="server" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "id") %>' OnClientClick="javascript:{return confirm('删除操作不可恢复，确认吗？');}">移除</asp:linkbutton>]</td>
					                            </tr>
			                                </table>
				                        </ItemTemplate>
                                        <FooterTemplate>
			                            </FooterTemplate>
                                        <SelectedItemStyle BackColor="#CEE5FD" />
                                     </asp:DataList>
                                     <asp:button id="btnUpdate" CssClass='rb1-12' runat="server" Text="保存修改" OnClick="btnUpdate_Click" ></asp:button>
                                </div>
		                    </td>
		                </tr>
		            </table>
		        </td>
		    </tr>
		</table>
		
    </div>
	<div id="myhidediv" style="VISIBILITY: hidden;">
	    <asp:textbox id="colcode" runat="server" Width="2"></asp:textbox>
	</div>
    </form>
</body>
</html>
